text overflow ellipsis css

207

text overflow ellipsis two lines -

display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;

Applying an ellipsis with css -

p {
    display: -webkit-box;
    max-width: 200px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  	text-overflow: ellipsis;
}

Comments

Submit
0 Comments